### error
#### ExtendableError

可以继承的错误

```javascript
export class ExtendableError extends Error {    
    constructor(message) {
        super(message);        
        this.name = this.constructor.name;
        if (typeof Error.captureStackTrace === 'function') {
            Error.captureStackTrace(this, this.constructor);
        } else {
            this.stack = (new Error(message)).stack;
        }        
    }    
}
```